import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

///lib/utils/toast_utils.dart
///Toast工具类
class ToastUtils {
  static void showToast(String message) {
   Fluttertoast.showToast(
        msg:  message,
        toastLength: Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        timeInSecForIosWeb: 1,
        backgroundColor: Colors.red,
        textColor: Colors.white,
        fontSize: 16.0
    );


  }
}
